#!/bin/bash

build_dir="build/docker-image/Dockerfile"
SHELL_FOLDER=$(dirname "$0")
webhook=$(dirname $SHELL_FOLDER)

cd $webhook || exit

if [ ! -a $build_dir ]; then
  echo "啊啊啊"
  exit 1
fi

docker -v 

if [ ! $? -eq 0 ]; then
  curl -sSL https://get.daocloud.io/docker | sh
fi

`cp $build_dir .`

docker build .
